Part Number Hot Search : 
30F201 C1310 5KP30 30N06F BA3960 D780826 150200 BLF346
Product Description
Full Text Search
 

To Download CS4227 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 CS4227
Six Channel, 20-Bit Codec
Features
l Stereo
Description
The CS4227 is a single-chip codec providing stereo analog-to-digital and six digital-to-analog converters using delta-sigma conversion techniques. This +5 V device also contains volume controls that are independently selectable for each of the six D/A channels. Applications include Dolby(R) Pro-logicTM, THX(R), and Dolby Digital AC3TM home theater systems, DSP based car audio systems, and other multi-channel applications. ORDERING INFORMATION CS4227-KQ -10 to +70 C 44-pin TQFP CS4227-BQ -40 to +85 C 44-pin TQFP CDB4227 Evaluation Board
20-bit A/D Converters l Six 20-bit D/A Converters l 108 dB DAC Signal-to-Noise Ratio (EIAJ) l Mono 20-bit A/D Converter l Programmable Input Gain & Output Attenuation l On-chip Anti-aliasing and Output Smoothing Filters l De-emphasis for 32 kHz, 44.1 kHz, 48 kHz
I
SCL/CCLK SDA/CDOUT AD1/CDIN AD0/CS SPI/I2C
VD+ VA+ Voltage Reference CMOUT AOUT1 AOUT2 Analog Low Pass and Output Stage AOUT3 AOUT4 AOUT5 AOUT6 AINAUX AIN1L AIN1R AIN2L AIN2R AIN3L AIN3R AGND1 AGND2 DGND2
PDN
Control Port DAC#1 Volume Control Volume Control Volume Control Volume Control Volume Control Volume Control
LRCK SCLK Serial Audio Data Interface Digital Filters SDIN1 SDIN2 SDIN3 DAC#2 DAC#3 DAC#4 DAC#5 DAC#6 Mono ADC Left ADC Right ADC Digital Filters
SDOUT1 SDOUT2 OVL MUX
Input Gain
DEM
DEM Clock Osc/ Divider CLKOUT XTI XTO
Auxiliary Input
HOLD
DATAUX
LRCKAUX
SCLKAUX
DGND1
Preliminary Product Information
P.O. Box 17847, Austin, Texas 78760 (512) 445 7222 FAX: (512) 445 7581 http://www.cirrus.com
This document contains information for a new product. Cirrus Logic reserves the right to modify this product without notice.
Copyright (c) Cirrus Logic, Inc. 1999 (All Rights Reserved)
Input MUX
SEP `99 DS281PP2 1
CS4227
TABLE OF CONTENTS
1. CHARACTERISTICS AND SPECIFICATIONS ........................................................................ 4 ANALOG CHARACTERISTICS ................................................................................................ 4 SWITCHING CHARACTERISTICS .......................................................................................... 6 SWITCHING CHARACTERISTICS - CONTROL PORT........................................................... 8 ABSOLUTE MAXIMUM RATINGS ......................................................................................... 10 RECOMMENDED OPERATING CONDITIONS ..................................................................... 10 DIGITAL CHARACTERISTICS ............................................................................................... 10 2. FUNCTIONAL DESCRIPTION ............................................................................................... 12 2.1 Overview .......................................................................................................................... 12 2.2 Analog Inputs ................................................................................................................... 12 2.2.1 Line Level Inputs ................................................................................................. 12 2.2.2 Adjustable Input Gain .......................................................................................... 13 2.2.3 High Pass Filter ................................................................................................... 13 2.3 Analog Outputs ................................................................................................................ 13 2.3.1 Line Level Outputs .............................................................................................. 13 2.3.2 Output Level Attenuator ...................................................................................... 14 2.4 Clock Generation ............................................................................................................. 14 2.4.1 Clock Source ....................................................................................................... 14 2.4.2 Master Clock Output ........................................................................................... 14 2.4.3 Synchronization ................................................................................................... 14 2.5 Digital Interfaces .............................................................................................................. 15 2.5.1 Audio DSP Serial Interface Signals ..................................................................... 15 2.5.2 Audio DSP Serial Interface Formats ................................................................... 15 2.5.3 Auxiliary Audio Port Signals ................................................................................ 15 2.5.4 Auxiliary Audio Port Formats ............................................................................... 15 2.6 Control Port Signals ......................................................................................................... 17 2.6.1 SPI Mode ............................................................................................................ 17 2.6.2 I2C(R) Mode ........................................................................................................... 18 2.6.3 Control Port Bit Definitions .................................................................................. 18 2.7 Power-up/Reset/Power Down Mode ................................................................................ 18 2.8 DAC Calibration ............................................................................................................... 19 2.9 De-Emphasis ................................................................................................................... 19 2.10 Hold Function ................................................................................................................. 19
Contacting Cirrus Logic Support
For a complete listing of Direct Sales, Distributor, and Sales Representative contacts, visit the Cirrus Logic web site at: http://www.cirrus.com/corporate/contacts/
Dolby is a registered trademark of Dolby Labratories Licensing Corporation. Pro Logic, and AC-3 are trademarks of Dolby Labratories Licensing Corporation. THX is a registered trademark of LucasArts Entertainment Company. Preliminary product information describes products which are in production, but for which full characterization data is not yet available. Advance product information describes products which are in development and subject to development changes. Cirrus Logic, Inc. has made best efforts to ensure that the information contained in this document is accurate and reliable. However, the information is subject to change without notice and is provided "AS IS" without warranty of any kind (express or implied). No responsibility is assumed by Cirrus Logic, Inc. for the use of this information, nor for infringements of patents or other rights of third parties. This document is the property of Cirrus Logic, Inc. and implies no license under patents, copyrights, trademarks, or trade secrets. No part of this publication may be copied, reproduced, stored in a retrieval system, or transmitted, in any form or by any means (electronic, mechanical, photographic, or otherwise) without the prior written consent of Cirrus Logic, Inc. Items from any Cirrus Logic website or disk may be printed for use by the user. However, no part of the printout or electronic files may be copied, reproduced, stored in a retrieval system, or transmitted, in any form or by any means (electronic, mechanical, photographic, or otherwise) without the prior written consent of Cirrus Logic, Inc.Furthermore, no part of this publication may be used as a basis for manufacture or sale of any items without the prior written consent of Cirrus Logic, Inc. The names of products of Cirrus Logic, Inc. or other vendors and suppliers appearing in this document may be trademarks or service marks of their respective owners which may be registered in some jurisdictions. A list of Cirrus Logic, Inc. trademarks and service marks can be found at http://www.cirrus.com.
2
DS281PP2
CS4227
2.11 Power Supply, Layout, and Grounding .......................................................................... 19 2.12 ADC and DAC Filter Response Plots ............................................................................ 20 3. PIN DESCRIPTIONS .............................................................................................................. 29 4. PARAMETER DEFINITIONS .................................................................................................. 33 5. PACKAGE DIMENSIONS ...................................................................................................... 34
LIST OF FIGURES
Figure 1. Audio Ports Master Mode Timing..................................................................................... 7 Figure 2. Audio Ports Slave Mode and Data I/O Timing ................................................................. 7 Figure 3. Control Port SPI Mode ..................................................................................................... 8 Figure 4. Control Port I2C Mode...................................................................................................... 9 Figure 5. Recommended Connection Diagram............................................................................. 11 Figure 6. Optional Line Intput Buffer ............................................................................................. 12 Figure 7. Butterworth Filters.......................................................................................................... 13 Figure 8. Audio DSP and Auxiliary Port Data Input Formats ........................................................ 16 Figure 9. Audio DSP Port Data Output Formats ........................................................................... 16 Figure 10. One Data Line Modes .................................................................................................. 16 Figure 11. Control Port Timing, SPI Mode .................................................................................... 17 Figure 12. Control Port Timing, I2C(R) Mode................................................................................... 18 Figure 13. De-emphasis Curve. .................................................................................................... 19 Figure 14. Suggested Layout Guideline........................................................................................ 20 Figure 15. 20-bit ADC Filter Response ......................................................................................... 21 Figure 16. 20-bit ADC Passband Ripple ....................................................................................... 21 Figure 17. 20-bit ADC Transition Band ......................................................................................... 21 Figure 18. DAC Frequency Response .......................................................................................... 21 Figure 19. DAC Passband Ripple ................................................................................................. 21 Figure 20. DAC Transition Band ................................................................................................... 21
LIST OF TABLES
Table 1. Single-ended vs Differential Input Pin Assignments .............................................................. 12 Table 2. High Pass Filter Characteristics ............................................................................................ 13 Table 3. DSP Serial Input Ports........................................................................................................... 15
DS281PP2
3
CS4227
1. CHARACTERISTICS AND SPECIFICATIONS
ANALOG CHARACTERISTICS (TA = 25 C; VA+, VD+ = +5 V; Full Scale Input Sine wave, 997 kHz; Fs = 44.1 kHz; Measurement Bandwidth is 20 Hz to 20 kHz; Local components as shown in Figure 5; SPI mode, Format 3, unless otherwise specified.)
CS4227-KQ Parameter Symbol Min Typ Max CS4227-BQ Min Typ Max Units
Analog Input Characteristics - Minimum gain setting (0 dB) Differential Input; unless otherwise specified. ADC Resolution Stereo Audio channels 16 20 16 20 Bits Mono channel 16 20 16 20 Bits Total Harmonic Distortion THD 0.003 0.003 % Dynamic Range (A weighted, Stereo) 92 95 90 93 dB (unweighted, Stereo) 92 90 dB (A weighted, Mono) 89 87 dB Total Harmonic -1 dB, Stereo (Note 1) THD+N -88 -82 -86 -80 dB Distortion + Noise -1 dB, Mono (Note 1) -72 -70 dB Interchannel Isolation 90 90 dB Interchannel Gain Mismatch 0.1 0.1 dB Programmable Input Gain Span 8 9 10 8 9 10 dB Gain Step Size 2.7 3 3.3 2.7 3 3.3 dB Offset Error (with high pass filter) 0 0 LSB Full Scale Input Voltage (Single Ended): 0.90 1.0 1.10 0.90 1.0 1.10 Vrms Gain Drift 100 100 ppm/C Input Resistance (Note 2) 10 10 k Input Capacitance 15 15 pF CMOUT Output Voltage 2.3 2.3 V A/D Decimation Filter Characteristics Passband (Note 3) 0.02 20.0 0.02 20.0 kHz Passband Ripple 0.01 0.01 dB Stopband (Note 3) 27.56 5617.2 27.56 5617.2 kHz Stopband Attenuation (Note 4) 80 80 dB Group Delay (Fs = Output Sample Rate) (Note 5) tgd 15/Fs 15/Fs s tgd s Group Delay Variation vs. Frequency 0 0
Notes: 1. Referenced to typical full-scale differential input voltage (2Vrms). 2. Input resistance is for the input selected. Non-selected inputs have a very high (>1M) input resistance. The input resistance will vary with gain value selected, but will always be greater than the min. value specified. 3. Filter characteristics scale with output sample rate. 4. The analog modulator samples the input at 5.6448 MHz for an output sample rate of 44.1 kHz. There is no rejection of input signals which are multiples of the sampling frequency (n x 5.6448 MHz 20.0 kHz where n = 0,1,2,3...). 5. Group delay for Fs = 44.1 kHz, tgd = 15/44.1 kHz = 340 s
4
DS281PP2
CS4227
ANALOG CHARACTERISTICS (Continued)
Parameter Symbol High Pass Filter Characteristics Frequency Response: -3 dB (Note 3) 3.4 3.4 -0.13 dB 20 20 Phase Deviation @ 20 Hz (Note 3) 10 10 Passband Ripple 0 0 Analog Output Characteristics - Minimum Attenuation, 10 k, 100 pF load; unless otherwise specified. DAC Resolution 16 20 16 20 Signal-to-Noise/Idle (DAC muted, A weighted) 101 108 99 106 Channel Noise Dynamic Range (DAC not muted, A weighted) 93 98 91 96 (DAC not muted, unweighted) 95 93 Total Harmonic Distortion THD 0.003 0.003 Total Harmonic Distortion + Noise (Stereo) THD+N -88 -83 -86 -81 Interchannel Isolation 90 90 Interchannel Gain Mismatch 0.1 0.1 Attenuation Step Size (All Outputs) 0.7 1 1.3 0.7 1 1.3 Programmable Output Attenuation Span -84 -86 -84 -86 Offset Voltage (relative to CMOUT) 15 15 Full Scale Output Voltage 0.92 1.0 1.08 0.92 1.0 1.08 Gain Drift 100 100 Out-of-Band Energy (Fs/2 to 2Fs) -60 -60 Analog Output Load Resistance: 10 10 Capacitance: 100 100 Combined Digital and Analog Filter Characteristics Frequency Response 10 Hz to 20 kHz 0.1 0.1 Deviation from Linear Phase 0.5 0.5 Passband: to 0.01 dB corner (Notes 6, 7) 0 20.0 0 20.0 Passband Ripple (Note 7) 0.01 0.01 Stopband (Notes 6 ,7) 24.1 24.1 Stopband Attenuation (Note 8) 70 70 Group Delay (Fs = Input Word Rate) (Note 5) tgd 16/Fs 16/Fs Analog Loopback Performance Signal-to-noise Ratio (CCIR-2K weighted, -20 dB input) CCIR-2K 71 71 Power Supply Power Supply Current Operating 90 113 90 115 Power Down 1 3 1 3 Power Supply Rejection (1 kHz, 10 mVrms) 45 45 CS4227-KQ Min Typ Max CS4227-BQ Min Typ Max Units Hz Hz Deg. dB Bits dB dB dB % dB dB dB dB dB mV Vrms ppm/C dBFs k pF dB Deg. kHz dB kHz dB s dB mA mA dB
Notes: 6. The passband and stopband edges scale with frequency. For input word rates, Fs, other than 44.1 kHz, the 0.05 dB passband edge is 0.4535xFs and the stopband edge is 0.5465xFs. 7. Digital filter characteristics. 8. Measurement bandwidth is 10 Hz to 3Fs. Specifications are subject to change without notice
DS281PP2
5
CS4227
SWITCHING CHARACTERISTICS (TA = 25 C; VA+, VD+ = +5 V 5%; outputs loaded with 30 pF.)
Parameter Audio ADC's and DAC's Sample Rate XTI Frequency XTI = 256, 384, or 512 Fs XTI Pulse Width High XTI = 512 Fs XTI = 384 Fs XTI = 256 Fs XTI Pulse Width Low XTI = 512 Fs XTI = 384 Fs XTI = 256 Fs XTI Jitter Tolerance CLKOUT Jitter (Note 9) CLKOUT Duty Cycle (high timer/cycle time) (Note 10) PDN Low Time SCLK Falling Edge to SDOUT Output Valid LRCK edge to MSB valid SDIN Setup Time Before SCLK Rising Edge SDIN Hold Time After SCLK Rising Edge Master Mode SCLK Falling to LRCK Edge SCLK Period SCLK Duty Cycle Slave Mode SCLK Period SCLK High Time SCLK Low Time SCLK Rising to LRCK Edge LRCK Edge to SCLK Rising (Note 11) DSCK = 0 DSCK = 0 DSCK = 0 DSCK = 0 (Note 14) Symbol Fs Min 4 1.024 10 21 31 10 21 31 40 500 Note 13 40 40 20 40 Typ 500 200 50 10 50 Max 50 26 60 Note 12 40 25 25 Unit kHz MHz ns
ns
ps psRMS % ns ns ns ns ns ns % ns ns ns ns ns
tdpd tlrpd tds tdh tmslr -
DSCK = 0 DSCK = 0
tsckw tsckh tsckl tlrckd tlrcks
Notes: 9. CLKOUT Jitter is for 256x Fs selected as output frequency measured from falling edge to falling edge. Jitter is greater for 384x Fs and 512x Fs as selected output frequency. 10. For CLKOUT frequency equal to 1x Fs, 384x Fs, and 512x Fs. See Master Clock Output section. 11. After powering up the CS4227, PDN should be held low for 1 ms to allow the power supply to settle. 1 12. --------------------- + 20 ( 384 )Fs 13. 14. 1 --------------------( 128 )Fs 1 ------------------( 256 )Fs
6
DS281PP2
CS4227
SCLK* SCLKAUX* (output) t mslr LRCK LRCKAUX (output)
SDOUT1 SDOUT2
Figure 1. Audio Ports Master Mode Timing
LRCK LRCKAUX (input)
t lrckd
t lrcks
t sckh
t sckl
SCLK* SCLKAUX* (input)
SDIN1 SDIN2 SDIN3 DATAUX
t sckw
t lrpd t ds
t dh MSB
t dpd MSB-1
SDOUT1 SDOUT2
*SCLK, SCLKAUX shown for DSCK = 0 and ASCK = 0. SCLK & SCLKAUX inverted for DSCK = 1 and ASCK = 1, respectively.
Figure 2. Audio Ports Slave Mode and Data I/O Timing
DS281PP2
7
CS4227
SWITCHING CHARACTERISTICS - CONTROL PORT (TA = 25 C; VA+, VD+ = +5 V 5%;
Inputs: logic 0 = DGND, logic 1 = VD+; CL = 30 pF) Parameter Symbol fsck tcsh tcss tscl tsch tdsu (Note 15) tdh tpd tr1 tf1 (Note 16) (Note 16) tr2 tf2 Min 1.0 20 66 66 40 15 Max 6 45 25 25 100 100 Unit MHz s ns ns ns ns ns ns ns ns ns ns
SPI Mode (SPI/I2C = 0) CCLK Clock Frequency
CS High Time Between Transmissions CS Falling to CCLK Edge CCLK Low Time CCLK High Time CDIN to CCL Rising Setup Time CCLK Rising to DATA Hold Time CCLK Falling to CDOUT stable Rise Time of CDOUT Fall Time of CDOUT Rise Time of CCLK and CDIN Fall Time of CCLK and CDIN
Notes: 15. Data must be held for sufficient time to bridge the transition time of CCLK. 16. For FSCK < 1 MHz.
CS
t css CCLK t r2 CDIN
t scl
t sch
t csh
t f2
t dsu t dh
CDOUT
t pd
Figure 3. Control Port SPI Mode
8
DS281PP2
CS4227
SWITCHING CHARACTERISTICS - CONTROL PORT (TA = 25 C; VA+, VD+ = +5 V 5%;
Inputs: logic 0 = DGND, logic 1 = VD+; CL = 30 pF) Parameter Symbol fscl tbuf thdst tlow thigh tsust thdd tsud tr tf tsusp Min 4.7 4.0 4.7 4.0 4.7 0 250 4.7 Max 100 1 300 Unit kHz s s s s s s ns s ns s
Mode (SPI/I2C = 1) (Note 17) SCL Clock Frequency Bus Free Time Between Transmissions Start Condition Hold Time (prior to first clock pulse) Clock Low Time Clock High Time Setup Time for Repeated Start Condition SDA Hold Time for SCL Falling (Note 18) SDA Setup Time to SCL Rising Rise Time of Both SDA and SCL Lines Fall Time of Both SDA and SCL Lines Setup Time for Stop Condition
I2C(R)
Notes: 17. I2C(R) is a registered trademark of Philips Semiconductors. 18. Data must be held for sufficient time to bridge the 300 ns transition time of SCL.
Repeated Start
Stop
SDA t buf
Start
Stop
t hdst
t high
t
hdst
tf
t susp
SCL t t t sud t sust tr
low
hdd
Figure 4. Control Port I2C Mode
DS281PP2
9
CS4227
ABSOLUTE MAXIMUM RATINGS (AGND, DGND = 0 V, all voltage with respect to 0 V.)
Parameter Power Supplies Input Current Analog Input Voltage Digital Input Voltage Ambient Temperature Storage Temperature Digital Analog (Note 19) (Note 20) (Note 20) (Power Applied) Symbol VD+ VA+ Min -0.3 -0.3 -0.7 -0.7 -55 -65 Max 6.0 6.0 10 (VA+) + 0.7 (VD+) + 0.7 +125 +150 Unit V mA V V C C
Notes: 19. Any pin except supplies. Transient currents of up to 100 mA on the analog input pins will not cause SCR latch-up. 20. The maximum over or under voltage is limited by the input current. WARNING: WARNING:Operation at or beyond these limits may result in permanent damage to the device. Normal operation is not guaranteed at these extremes.
RECOMMENDED OPERATING CONDITIONS (AGND, DGND = 0 V, all voltage with respect to
0 V.) Parameter Power Supplies |VA+ - VD+| < 0.4 V Operating Ambient Temperature Digital Analog Symbol VD+ VA+ TA Min 4.75 4.75 -10 Typ 5.0 5.0 25 Max 5.25 5.25 70 Unit V C
DIGITAL CHARACTERISTICS (TA = 25 C; VA+, VD+ = +5 V 5%)
Parameter High-level Input Voltage Low-level Input Voltage High-level Output Voltage Low-level Output Voltage Input Leakage Current Output Leakage Current (Except XTI) (Except XTI) (Except XTO) (Except XTO) (Digital Inputs) (High-Impedance Digital Outputs) Symbol VIH VIL VOH VOL Min 2.8 -0.3 (VD+) - 1.0 Max (VD+) + 0.3 0.8 0.4 10 10 Unit V V V V A A
10
DS281PP2
CS4227
Ferrite Bead +5V Supply + 1 F 2.0
0.1 F
19 VA+
+ 1 F
0.1 F
40 VD+ AOUT1 21
To Optional Input and Output Buffers
16
1 F
+
CMOUT
ANALOG FILTER
10 F
10 F From Optional Input Buffer 10 F
* 14 * 13 * 11 * 12
AOUT2 AIN1L AIN1R AIN2L AIN2R
22
ANALOG FILTER
CS4227
AOUT3
23
ANALOG FILTER
10 F
10 F 10 F
* 10
* 9
AOUT4
AIN3L AIN3R AOUT5 AINAUX
24
ANALOG FILTER
25
10 F
* 15
ANALOG FILTER
AOUT6
27 2 Digital Audio Source DEM HOLD SCL/CCLK 1 RS 44 DATAUX LRCKAUX SDA/CDOUT
26
ANALOG FILTER
3 4 6 5 Microcontroller
AD0/CS
AD1/CDIN
RS
43
SCLKAUX
8 Mode Setting
7
PDN
SPI/I2C SDIN1 SDIN2 34 33
SDIN3
SDOUT1 SDOUT2
32
36 35 37 38 31 30 RS RS Audio DSP
LRCK
R S = 50 SCLK CLKOUT All unused digital inputs should be tied to 0V. Unused analog inputs should be left unconnected. OVL
AGND1, 2 DGND1, 2 18 20 41 39
NC 17
XTO 29
XTI 28
* Optional if analog inputs biased to within 1% of CMOUT
External Clock Input C1** C2**
Figure 5. Recommended Connection Diagram (Also see recommended layout diagrams, Figure 14)
DS281PP2
11
CS4227
2. FUNCTIONAL DESCRIPTION 2.1 Overview
3.3 F
20 k 100 pF
The CS4227 has 2 channels of 20-bit analog-todigital conversion and 6 channels of 20-bit digitalto-analog conversion. A mono 20-bit ADC is also provided. All ADCs and DACs are delta-sigma converters. The stereo ADC inputs have adjustable input gain, while the DAC outputs have adjustable output attenuation. Digital audio data received by the DACs and transmitted from the ADCs is communicated over separate serial ports, allowing concurrent writing to and reading from the device. The CS4227 functions are controlled via a serial microcontroller interface. Figure 1 shows the recommended connection diagram for the CS4227.
Line In Right Example Op-Amps are MC34074 or MC33078
+
10 k AINxR
5k CMOUT 0.47 F
Line In Left
3.3 F
20 k
+ 10 k
AINxL
100 pF
Figure 6. Optional Line Intput Buffer
2.2 2.2.1
Analog Inputs Line Level Inputs
AIN1R, AIN1L, AIN2R, AIN2L, AIN3R, AIN3L and AINAUX are the line level input pins (See Figure 5). These pins are internally biased to the CMOUT voltage (nominally 2.3 V). A 10 F DC blocking capacitor allows signals centered around 0 V to be input. Figure 6 shows an optional dual op amp buffer which combines level shifting with a gain of 0.5 to attenuate the standard line level of 2 Vrms to 1 Vrms. The CMOUT reference level is used to bias the op-amps to approximately one half the supply voltage. With this input circuit, the 10 F DC blocking caps in Figure 5 may be omitted. Any remaining DC offset will be removed by the internal high-pass filters. Selection of the stereo input pair for the 20-bit ADC's is accomplished by setting the AIS1/0 bits, which are accessible in the ADC Control Byte. Onchip anti-aliasing filters follow the input mux, providing anti-aliasing for all input channels.
The analog inputs may also be configured as differential inputs. This is enabled by setting bits AIS1/0 = 3. In the differential configuration, the left channel inputs reside on pins 10 and 11, and the right channel inputs reside on pins 12 and 13 as described in the table below. In differential mode, the full scale input level is 2 Vrms.
Single-ended AIN3L AIN3R AIN2L AIN2R AIN1L AIN1R Pin # Pin 10 Pin 9 Pin 11 Pin 12 Pin 14 Pin 13 Differential Inputs AINL+ unused AINLAINRunused AINR+
Table 1. Single-ended vs Differential Input Pin Assignments
The analog signal is input to the mono ADC via the AINAUX pin. Independent Muting of both the stereo ADC's and the mono ADC is possible through the ADC Control Byte (#11) with the MUTR, MUTL and MUTM bits.
12
DS281PP2
CS4227
2.2.2 Adjustable Input Gain 2.3 2.3.1 Analog Outputs Line Level Outputs
The signals from the line inputs are routed to a programmable gain circuit which provides up to 9 dB of gain in 3 dB steps, adjustable through the Input Control Byte. Right and left channel gain settings are controlled independently with the GNR1/0 and GNL1/0 bits. To minimize audible artifacts, level changes should be done with the channel muted, as the changes occur immediately on register updates. The ADC Status Report Byte provides feedback of input level for each ADC channel. This register continously monitors the ADC output and records the peak output level since the last register read. Reading this register causes it to reset to 0, whereupon peak monitoring begins again.
2.2.3
High Pass Filter
The operational amplifiers in the input circuitry driving the CS4227 may generate a small DC offset into the A/D converter. The CS4227 includes a high pass filter after the decimator to remove any DC offset which could result in recording a DC level, possibly yielding "clicks" when switching between devices in a multichannel system. The characteristics of this first-order high pass filter are outlined below for an output sample rate of 44.1 kHz. This filter response scales linearly with sample rate.
Frequency Response Phase Deviation Passband Ripple -3dB @ 3.4 Hz -0.13 dB @ 20 Hz 10 degrees @ 20 Hz None
The CS4227 contains an on-chip buffer amplifier producing single-ended outputs capable of driving 10 k loads. Each output (AOUT 1-6) will produce a nominal 2.83 Vpp (1 Vrms) output with a 2.3 volt quiescent voltage for a full scale digital input. The recommended off-chip analog filter is a 2nd order Butterworth with a -3 dB corner at Fs (see Figure 7). This filter provides out-of-band noise attenuation along with a gain of 2, providing a 2 Vrms output signal. A 3rd order Butterworth filter with a -3 dB corner at 0.75 Fs can be used if greater out of band noise filtering is desired. The CS4227 DAC interpolation filter is a linear phase design which has been pre-compensated for an external 2nd order Butterworth filter to provide a flat frequency response and linear phase response over the passband. If this filter is not used, small frequency response magnitude and phase errors will occur.
150pF 22 k 11 k 3.9 k
_ + Example Op-Amps are MC33078 0.47 F
1000pF 5 k CMOUT
2-Pole Butterworth Filter
560 pF 5.85 k
Table 2. High Pass Filter Characteristics
AOUT
1.1 k 4.75 k
1.21 k
_
5600 pF
5600 pF 5 k
+
CMOUT 0.47 F
3-Pole Butterworth Filter
Figure 7. Butterworth Filters
DS281PP2
13
CS4227
2.3.2 Output Level Attenuator 2.4.1 Clock Source
The DAC outputs are each routed through an attenuator which is adjustable in 1 dB steps. Output attenuation is available through the Output Attenuator Data Bytes. Level changes are implemented such that the noise is attenuated by the same amount as the signal (equivalent to using an analog attenuator after the signal source) until the residual output noise is equal to the noise floor in the mute state. Level changes only take effect on zero crossings to minimize audible artifacts. If there is no zero crossing, then the requested level change will occur after a time-out period between 512 and 1024 frames (11.6 ms to 23.2 ms at 44.1 kHz frame rate). There is a separate zero crossing detector for each channel. Each ACC bit in the DAC Status Report Byte provides information on when a volume control change has taken effect. This bit goes high when a new setting is loaded and returns low when it has taken effect. Volume control changes can be instantaneous by setting the Zero Crossing Disable (ZCD) bit in the DAC Control Byte (#3) to 1. Each output can be independently muted via mute control bits, MUT6-1, in the DAC Control Byte (#3). The mute also takes effect on a zero-crossing or after a timeout. In addition, the CS4227 has an optional mute on consecutive zeros feature, where all DAC outputs will mute if they receive between 512 and 1024 consecutive zeros (or -1 code) on all six channels. A single non-zero value will unmute the DAC outputs. This feature can be disabled with the MUTC bit in the DAC Control Byte (#3).
The CS4227 requires a high frequency master clock to run the internal logic. The clock enable bit (CE) must be set to 0 after power-up of the device (see Power-up/Reset/Power Down Mode section). A high frequency crystal can be connected to XTI and XTO, or a high frequency clock can be applied to XTI. This high frequency clock can be 256 Fs, 384 Fs or 512 Fs; this is set by the CI0/1 bits in the Clock Mode Byte (#1). When using the on-chip crystal oscillator, external loading capacitors are required (see Figure 5). High frequency crystals (>8 MHz) should be parallel resonant, fundamental mode and designed for 20 pF loading (equivalent to 40 pF to ground on each leg).
2.4.2
Master Clock Output
CLKOUT is a master clock output provided to allow synchronization of external components. Available CLKOUT frequencies of 1 Fs, 256 Fs, 384 Fs, and 512 Fs, are selectable by the CO0/1 bits of the Clock Mode Byte. Generation of CLKOUT for 384 Fs and 512 Fs is accomplished with an on chip clock multiplier and may contain clock jitter. The source of the 256 Fs CLKOUT is a divided down clock from the XTI/XTO input. If 384 Fs is chosen as the input clock at XTI and 256 Fs is chosen as the output, CLKOUT will have approximately a 33% duty cycle. In all other cases CLKOUT will typically have a 50% duty cycle.
2.4.3
Synchronization
2.4
Clock Generation
The master clock to operate the CS4227 may be generated by using the on-chip inverter and an external crystal or by using an external clock source. If the active clock source stops for 10 s, the CS4227 will enter a power down state. In all modes it is required to have SCLK and LRCK synchronous to the selected master clock.
14
The DSP port and Auxiliary port must operate synchronously to the CS4227 clock source. The serial port will force a reset of the data paths in an attempt to resynchronize if non-synchronous data is input to the CS4227. It is advisable to mute the DACs when changing from one clock source to another to avoid the output of undesirable audio signals as the CS4227 resynchronizes.
DS281PP2
CS4227
2.5 Digital Interfaces
SDIN1 DAC Inputs left channel DAC #1 right channel DAC #2 single line All 6 DAC channels left channel DAC #3 right channel DAC #4 left channel DAC #5 right channel DAC #6 Table 3. DSP Serial Input Ports
There are 2 digital audio interface ports: the audio DSP port and the auxiliary digital audio port. The serial data is represented in 2's complement format with the MSB-first in all formats.
SDIN2 SDIN3
2.5.1
Audio DSP Serial Interface Signals
The serial interface clock, SCLK, is used for transmitting and receiving audio data. The active edge of SCLK is chosen by setting the DSCK bit in the DSP Port Mode Byte (#14). SCLK can be generated by the CS4227 (master mode) or it can be input from an external SCLK source (slave mode). Mode selection is set with the DMS1/0 bits in the DSP Port Mode Byte (#14). The number of SCLK cycles in one system sample period is programmable to be 32, 48, 64, or 128 by setting the DCK1/0 bits in the DSP Port Mode Byte (#14). When SCLK is an input, 64 SCLK's per system sample period is not recommended, due to potential interference effects; if possible 128 SCLK's per sample period should be used instead. For master mode, bursting of a 128 Fs clock is preferrable over evenly distributed clocks. The Left/Right clock (LRCK) is used to indicate left and right data and the start of a new sample period. It may be output from the CS4227, or it may be generated from an external controller. The frequency of LRCK must be equal to the system sample rate, Fs. SDIN1, SDIN2, and SDIN3 are the data input pins, each of which drives a pair of DACs. SDOUT1 and SDOUT2 can carry the output data from the two 20-bit ADC's, the mono ADC and the auxiliary digital audio port. Selection depends on the IS1/0 bits in the ADC control byte (#11). The audio DSP port may also be configured so that all 6 DAC's data is input on SDIN1, and all 3 ADC's data is output on SDOUT1. Table 3 outlines the serial interface ports.
2.5.2
Audio DSP Serial Interface Formats
The audio DSP port supports 7 alternate formats, shown in Figures 8, 9, and 10. These formats are chosen through the DSP Port Mode Byte (#14) with the DDF2/1/0 bits. Formats 5 and 6 are single line data modes where all DAC channels are combined onto a single input and all ADC channels are combined onto a single output. Format 6 is available in master mode only. See Figure 10.
2.5.3
Auxiliary Audio Port Signals
The auxiliary port provides an alternate way to input digital audio signals into the CS4227. This port consists of clock, data and left/right clock pins named, SCLKAUX, DATAUX and LRCKAUX. The Auxiliary Audio Port input is output on SDOUT1 when IS is set to 1 or 2 in the ADC Control Byte. Additionally, setting IS to 2 routes the stereo ADC outputs to SDOUT2. There is approximately a two frame delay from DATAUX to SDOUT1. When the auxiliary port is used, the frequency of LRCKAUX must be equal to the system sample rate, Fs, but no particular phase relationship is required. De-emphasis can be performed on input data to the auxiliary audio port; this is controlled by the Auxiliary Port Control Byte (#16).
2.5.4
Auxiliary Audio Port Formats
Input data on DATAUX is clocked into the part by SCLKAUX using the format selected in the Auxiliary Port Mode Byte. The auxiliary audio port sup15
DS281PP2
CS4227
FORMAT 0, 1, 2:
Format 0: M = 20 Format 1: M = 18 Format 2: M = 16
LRCK SCLK
SDIN LSB
Left
Right
MSB
LSB
MSB
LSB
M SCLKs
M SCLKs
Right
FORMAT 3:
LRCK SCLK
Left
SDIN
MSB
LSB
MSB
LSB
MSB
FORMAT 4:
LRCK SCLK SDIN MSB
Left
Right
LSB
MSB
LSB
Note: SCLK shown for DSCK = 0. SCLK inverted for DSCK = 1.
Figure 8. Audio DSP and Auxiliary Port Data Input Formats
FORMAT 0, 1, 2:
Format 0: M = 20 Format 1: M = 18 Format 2: M = 16
LRCK SCLK
SDOUT LSB
Left
Right
MSB
LSB
MSB
LSB
M SCLKs
M SCLKs
Right
FORMAT 3:
LRCK SCLK
Left
SDOUT
MSB
LSB
MSB
LSB
MSB
FORMAT 4:
LRCK SCLK SDOUT MSB
Left
Right
LSB
MSB
LSB
Note: SCLK shown for DSCK = 0. SCLK inverted for DSCK = 1.
Figure 9. Audio DSP Port Data Output Formats
64 SCLKS 64 SCLKS
FORMAT 5:
LRCK
SCLK SDIN1 MSB LSB MSB LSB MSB LSB MSB LSB MSB LSB MSB LSB MSB
DAC #1 20 clks SDOUT1 SDOUT1
DAC #3 20 clks SDOUT2
DAC #5 20 clks
DAC #2 20 clks SDOUT1
DAC #4 20 clks SDOUT2
DAC #6 20 clks
20 clks
20 clks
128 SCLKS
20 clks
20 clks
128 SCLKS
FORMAT 6:
(Master Mode Only)
LRCK
SCLK SDIN1 MSB DAC #1 32 clks SDOUT1 SDOUT1 32 clks LSB
MSB
LSB
MSB DAC #5 32 clks
LSB
MSB
DAC #2 32 clks SDOUT1 32 clks
LSB
MSB
LSB
MSB DAC #6 32 clks
LSB
DAC #3 32 clks SDOUT2 32 clks
DAC #4 32 clks SDOUT2 32 clks
Figure 10. One Data Line Modes 16 DS281PP2
CS4227
CS CCLK CHIP ADDRESS CDIN
0010000
R/W
MAP
MSB
DATA
LSB
CHIP ADDRESS
0010000
R/W
byte 1
byte n
MSB LSB MSB LSB
CDOUT
MAP = Memory Address Pointer
High Impedance
Figure 11. Control Port Timing, SPI Mode
ports the same 5 formats as the audio DSP port in multi-data line mode. LRCKAUX is used to indicate left and right data samples, and the start of a new sample period. SCLKAUX and LRCKAUX may be output from the CS4227, or they may be generated from an external source, as set by the AMS1/0 control bits in the Auxiliary Port Mode Byte (#15).
2.6
Control Port Signals
The control port is used to load all the internal settings. The operation of the control port may be completely asynchronous with the audio sample rate. However, to avoid potential interference problems, the control port pins should remain static if no operation is required. The control port has 2 modes: SPI and I2C(R), with the CS4227 as a slave device. The SPI mode is selected by setting the SPI/I2C pin low, and I2C(R) is selected by setting the SPI/I2C pin high. The state of this pin is continuously monitored.
Figure 11 shows the operation of the control port in SPI mode. To write to a register, bring CS low. The first 7 bits on CDIN form the chip address, and they must be 0010000. The eighth bit is a read/write indicator (R/W), which should be low to write. The next 8 bits form the Memory Address Pointer (MAP), which is set to the address of the register that is to be updated. The next 8 bits are the data which will be placed into register designated by the MAP. During writes, the CDOUT output stays in the high impedance state. It may be externally pulled high or low with a 47 k resistor. The CS4227 has a MAP auto increment capability, enabled by the INCR bit in the MAP register. If INCR is a zero, then the MAP will stay constant for successive reads or writes. If INCR is set to a 1, then MAP will auto increment after each byte is read or written, allowing block reads or writes of successive registers. To read a register, the MAP has to be set to the correct address by executing a partial write cycle which finishes (CS high) immediately after the MAP byte. The auto MAP increment bit (INCR) may be set or not, as desired. To begin a read, bring CS low, send out the chip address and set the read/write bit (R/W) high. The next falling edge of CCLK will clock out the MSB of the addressed register (CDOUT will leave the high impedance state). If the MAP auto increment bit is set to 1, the data for successive registers will appear consecutively.
17
2.6.1
SPI Mode
In SPI mode, CS is the CS4227 chip select signal, CCLK is the control port bit clock, (input into the CS4227 from the microcontroller), CDIN is the input data line from the microcontroller, CDOUT is the output data line to the microcontroller, and the chip address is 0010000. Data is clocked in on the rising edge of CCLK and out on the falling edge.
DS281PP2
CS4227
Note 1
SDA
00100
ADDR AD1-0
R/W
ACK
DATA 1-8
DATA ACK 1-8
ACK
SCL Start Stop
Note 1: If operation is a write, this byte contains the Memory Address Pointer, MAP.
Figure 12. Control Port Timing, I2C(R) Mode
2.6.2
I2C(R) Mode
2.7
Power-up/Reset/Power Down Mode
In I2C(R) mode, SDA is a bidirectional data line. Data is clocked into and out of the part by the clock, SCL, with the clock to data relationship as shown in Figure 12. There is no CS pin. Pins AD0, AD1 form the partial chip address. The upper 5 bits of the 7 bit address field must be 00100. To communicate with a CS4227, the LSBs of the chip address field, which is the first byte sent to the CS4227, should match the settings of the AD1, AD0 pins. The eighth bit of the address bit is the R/W bit (high for a read, low for a write). If the operation is a write, the next byte is the Memory Address Pointer which selects the register to be read or written. If the operation is a read, the contents of the register pointed to by the Memory Address Pointer will be output. Setting the auto increment bit in MAP, allows successive reads or writes of consecutive registers. Each byte is separated by an acknowledge bit. Use of the I2C bus(R) compatible interface requires a license from Philips. I2C bus(R) is a registered trademark of Philips Semiconductors.
Upon power up, the user should hold PDN = 0 for approximately 1ms. In this state, the control port is reset to its default settings. At the end of the PDN, the device remains in a low power mode in which CMOUT will not supply current, but the control port is active. The desired settings should be loaded while keeping the RS bit set to 1. Normal operation is achieved by setting the CE bit to zero in the Clock Mode Byte (#1) and the RS bit to zero in the Converter Control Byte (#2). Once done, the part powers up and an offset calibration occurs. This process lasts approximately 50 ms. Reset/power down is achieved by lowering the PDN pin causing the part to enter power down. Once PDN goes high, the control port is functional and the desired settings should be loaded in while keeping the RS bit set to 1. The remainder of the chip remains in a low power reset state until the RS bit in the Convertor Control Byte is set to 0. After clearing the RS bit, the CE bit (Clock Enable) in the Clock Mode Byte (#1) should also be set to zero. The CS4227 will also enter a stand by mode if the master clock source stops for approximately 10 s or if the LRCK is not synchronous to the master clock. The control port will retain its current settings.
2.6.3
Control Port Bit Definitions
All registers can be written and read back, except the DAC Status Report Byte (#10) and ADC Status Report Byte (#13), which are read only. See the following bit definition tables for bit assignment information.
18
DS281PP2
CS4227
2.8 DAC Calibration
Gain dB T1=50 s 0dB
Output offset voltage is minimized by an internal calibration cycle. A calibration will automatically occur anytime the part comes out of reset, including the power-up reset, or when the master clock source to the part changes by changing the CE or CI bits in the Clock Mode Byte. The CS4227 can be re-calibrated whenever desired. A control bit, CAL, in the Converter Control Byte, is provided to initiate a calibration. The sequence is: 1) Set CAL to 1, the CS4227 sets CALP to 1 and begins to calibrate. 2) CALP will go to 0 when the calibration is completed. Additional calibrations can be implemented by setting CAL to 0 and then to 1.
T2 = 15 s -10dB
F1
F2
Frequency
Figure 13. De-emphasis Curve.
2.9
De-Emphasis
The CS4227 is capable of digital de-emphasis for 32, 44.1, or 48 kHz sample rates. Implementation of digital de-emphasis requires reconfiguration of the digital filter to maintain the filter response shown in Figure 13 at multiple sample rates. The Auxiliary Port Control Byte selects the de-emphasis control method. De-emphasis may be enabled under hardware control, using the DEM pin (DEM2/1/0=4,5,6), or by software control using the DEM bit (DEM2/1/0=0,1,2,3)
ples) by setting the MOH bit = 0 in the Auxiliary Port Control Byte. DACs will not be automatically muted when MOH = 1. When the HOLD pin is deasserted (HOLD = 0), the DAC outputs will return to one of two different states controlled by the UMV (Unmute on Valid Data) bit in the Auxiliary Port Control Byte. When UMV = 0, the DAC outputs will unmute when the HOLD is removed. When UMV = 1, the DACs must be unmuted in the DAC Control Byte after the HOLD is removed. This allows the user to unmute the DAC after the invalid data has passed through the DSP.
2.11
Power Supply, Layout, and Grounding
2.10
Hold Function
If the digital audio source presents invalid data to the CS4227, the CS4227 may be configured to cause the last valid digital input level to be held constant (this sounds much better than a potentially random output level). Holding the previous output sample occurs when the user asserts the HOLD pin (HOLD = 1) at any time during the stereo sample period. During a HOLD condition, AUXPort input data is ignored. DAC outputs can be automatically muted after an extended HOLD period (>15 samDS281PP2
The CS4227, along with associated analog circuitry, should be positioned near the split between ground planes, and have its own, separate, ground plane (see Figure 14). Preferably, it should also have its own power plane. The +5 V supply must be connected to the CS4227 via a ferrite bead, positioned closer than 1" to the device. A single connection between the CS4227 ground and the board ground should be positioned as shown in Figure 14. The location of the 1 F CMOUT filtering capicator should be as close to the CS4227 as possible. See Crystal's layout Applications Note, and the CDB4227 evaluation board data sheet for recommended layout of the decoupling components.
19
CS4227
The CS4227 will mute the analog outputs and enter the Power Down Mode if the supply drops below approximately 4 volts.
2.12
ADC and DAC Filter Response Plots
Figures 15 through 20 show the overall frequency response, passband ripple and transition band for the CS4227 ADC's and DAC's.
> 1/8" Digital Ground Plane
+5V Ferrite Bead CS4227 Ground Connection
Analog Ground Plane
Note that the CS4227 is oriented with its digital pins towards the digital end of the board.
CPU & Digital Logic
Codec digital signals
Codec analog signals & components
Figure 14. Suggested Layout Guideline
20
DS281PP2
CS4227
Figure 15. 20-bit ADC Filter Response
Figure 16. 20-bit ADC Passband Ripple
Figure 17. 20-bit ADC Transition Band
Figure 18. DAC Frequency Response
Figure 19. DAC Passband Ripple
Figure 20. DAC Transition Band
DS281PP2
21
CS4227
2.13 Memory Address Pointer (MAP)
6 0 5 0 4 MAP4 3 MAP3 2 MAP2 1 MAP1 0 MAP0
7 INCR
MAP4-MAP0 INCR
Register Pointer Auto Increment Control Bit 0 - No auto increment 1 - Auto increment on This register defaults to 01h.
2.14
Reserved Byte (0)
This byte is reserved for internal use and must be set to 00h for normal operation. This register defaults to 00h.
2.15
7 0
Clock Mode Byte (1)
6 CO1 5 CO0 4 CI1 3 CI0 2 0 1 0 0 CE
CE
Master clock enable 0 - Clock Enabled 1 - Clock Disabled Determines frequency of XTI 0 - 256 Fs 1 - 384 Fs 2 - 512 Fs 3 - not used Sets CLKOUT frequency 0 - 256 Fs 1 - 384 Fs 2 - 512 Fs 3 - 1 Fs This register defaults to 01h.
CI1-CI0
CO1-CO0
22
DS281PP2
CS4227
2.16 Converter Control Byte (2)
6 CLKE 5 DU 4 0 3 0 2 0 1 CAL 0 RS
7 CALP
RS
Chip reset 0 - No Reset 1 - Reset Calibration control bit 0 - Normal operation 1 - Rising edge initiates calibration The following bits are read only:
CAL
DU
Shows selected De-Emphasis setting used by DAC's 0 - Normal Flat DAC frequency response 1 - De-Emphasis selected Clocking system status 0 - No errors 1 - Crystal is not oscillating, or requesting clock change in progress Calibration status 0 - Calibration done 1 - Calibration in progres This register defaults to 01h.
CLKE
CALP
2.17
DAC Control Byte (3)
7 ZCD 6 MUTC 5 MUT6 4 MUT5 3 MUT4 2 MUT3 1 MUT2 0 MUT1
MUT6-MUT1
Mute control bits 0 - Normal output level 1 - Selected DAC output muted Controls mute on consecutive zeros function 0 - 512 consecutive zeros will mute DAC 1 - DAC output will not mute on zeros Zero crossing disable 0 - DAC mutes and volume control changes occur on zero-crossings 1 - DAC mutes and volume control changes occur immediately. This register defaults to 3Fh.
MUTC
ZCD
DS281PP2
23
CS4227
2.18
7 0
Output Attenuator Data Byte (4, 5, 6, 7, 8, 9)
6 ATT6 5 ATT5 4 ATT4 3 ATT3 2 ATT2 1 ATT1 0 ATT0
ATT6-ATT0
Sets attenuator level 0 - No attenuation 127 - 127 dB attenuation ATT0 represents 1.0 dB of attenuation This register defaults to 7Fh.
2.19
7 0
DAC Status Report Byte (Read Only) (10)
6 5 ACC6 4 ACC5 3 ACC4 2 ACC3 1 ACC2 0 ACC1
ACC6-ACC1
Acceptance Bit 0 - ATT6-ATT0 has been accepted. 1 - New setting is waiting for zero-crossing to be accepted. This register is read-only.
2.20
ADC Control Byte (11)
7 IS1 6 IS0 5 0 4 AIS1 3 AIS0 2 MUTM 1 MUTR 0 MUTL
MUTL, MUTR, MUTM - Left, right and mono channel mute control 0 - Normal output level 1 - Selected ADC output muted AIS1-AIS0 ADC analog input mux control 0 - Selects stereo pair 1 1 - Selects stereo pair 2 2 - Selects stereo pair 3 3 - Differential Input Input mux selection 0 - Stereo ADC output to SDOUT1, Mono ADC output to SDOUT2 1 - Auxiliary Digital Input Port to SDOUT1, Mono ADC output to SDOUT2 2 - Auxiliary Digital Input Port to SDOUT1, Stereo ADC output to SDOUT2 3 - Not used. This register defaults to 00h.
IS1-IS0
24
DS281PP2
CS4227
2.21 Input Control Byte (12)
6 0 5 0 4 0 3 GNR1 2 GNR0 1 GNL1 0 GNL0
7 OVRM
GNL1-GNL0
Sets left input gain 0 - 0 dB 1 - 3 dB 2 - 6 dB 3 - 9 dB Sets right input gain 0 - 0 dB 1 - 3 dB 2 - 6 dB 3 - 9 dB ADC Overflow Mask This register defaults to 00h.
GNR1-GNR0
OVRM
2.22
ADC Status Report Byte (Read Only) (13)
6 LVM0 5 LVR2 4 LVR1 3 LVR0 2 LVL2 1 LVL1 0 LVL0
7 LVM1
LVL2-LVL0, LVR2-0 Left and Right ADC output level 0 - Normal output levels 1 - -6 dB level 2 - -5 dB level 3 - -4 dB level 4 - -3 dB level 5 - -2 dB level 6 - -1 dB level 7 - Clipping LVLM1-LVLM0 Mono ADC output level 0 - Normal output level 1 - -6 dB level 2 - -3 dB level 3 - Clipping
These bits are 'sticky'. They constantly monitor the ADC output for the peak levels and hold the maximum output. They are reset to 0 when read. This register is read only.
DS281PP2
25
CS4227
2.23 DSP Port Mode Byte (14)
6 DCK0 5 DMS1 4 DMS0 3 DSCK 2 DDF2 1 DDF1 0 DDF0
7 DCK1
DDF2-DDF0
Data format 0 - Right justified, 20-bit 1 - Right justified, 18-bit 2 - Right justified, 16-bit 3 - Left justified, 20-bit in / 24-bit out 4 - I2S compatible, 20-bit in / 24-bit out 5 - One Data Line Mode (Figure 10) 6 - One Data Line (Master Mode only, Figure 10) 7 - Not used Set the polarity of clocking data 0 - Data clocked in on rising edge, out on falling edge 1 - Data clocked in on falling edge, out on rising edge Sets the mode of the port 0 - Slave 1 - Master Burst - SCLKs are gated 128 Fs clocks 2 - Master Non-Burst - SCLKs are evenly distributed (No 48 Fs SCLK) 3 - not used - default to Slave Set number of bit clocks per Fs period 0 - 128 1 - 48 - Master Burst or Slave mode only 2 - 32 - All formats will default to 16 bits 3 - 64 This register defaults to 00h. * Ignored in data formats 5 and 6.
DSCK
DMS1-DMS0
DCK1-DCK0*
26
DS281PP2
CS4227
2.24 Auxiliary Port Mode Byte (15)
6 ACK0 5 AMS1 4 AMS0 3 ASCK 2 ADF2 1 ADF1 0 ADF0
7 ACK1
ADF2-ADF0
Data format 0 - Right justified, 20-bit data 1 - Right justified, 18-bit data 2 - Right justified, 16-bit data 3 - Left justified, 20-bit 4 - I2S compatible, 20-bit 5 - Not used 6 - Not used 7 - Not used Sets the polarity of clocking data 0 - Data clocked in on rising edge 1 - Data clocked in on falling edge Sets the mode of the port. 0 - Slave 1 - Master Burst - SCLKAUXs are gated 128 Fs clocks 2 - Master Non-Burst - SCLKAUXs are evenly distributed in LRCKAUX frame 3 - Not used - default to slave Set number of bit clocks per Fs period. 0 - 128 1 - 48 - Master Burst or Slave mode only 2 - 32 - All input formats will default to 16 bits. 3 - 64 This register defaults to 00h.
ASCK
AMS1-AMS0
ACK1-ACK0
DS281PP2
27
CS4227
2.25
7 0
Auxilliary Port Control Byte (16)
6 0 5 UMV 4 MOH 3 0 2 DEM2 1 DEM1 0 DEM0
DEM 2-0
Selects de-emphasis response/source 0 - De-emphasis off 1 - De-emphasis on 32 kHz 2 - De-emphasis on 44.1 kHz 3 - De-emphasis on 48 kHz 4 - De-emphasis pin 32 kHz 5 - De-emphasis pin 44.1 kHz 6 - De-emphasis pin 48 kHz 7 - Reserved Mute On Hold 0 - Extended Hold (16 frames) mutes DAC outputs 1 - DACs not muted Unmute on Valid Data 0 - DACs unmute when HOLD is removed 1 - DACs must be unmuted in DAC control byte after HOLD is removed. This register defaults to 00h.
MOH
UMV
28
DS281PP2
CS4227
3. PIN DESCRIPTIONS
DGND2 VD+ DGND1 NC SCLKAUX LRCKAUX DATAUX HOLD SCL/CCLK SDA/CDOUT AD1/CDIN AD0/CS SPI/I2C PDN AIN3R AIN3L AIN2L AIN2R AIN1R AIN1L AINAUX CMOUT
44 43 42 41 40 39 38 37 36 35 34 1 33 2 32 3 31 4 30 5 29 CS4227-KQ 6 28 44-pin TQFP 7 27 8 26 Top View 9 25 10 24 11 23 12 13 14 15 16 17 18 19 20 21 22
SCLK LRCK SDOUT1 SDOUT2 SDIN1 SDIN2 SDIN3 CLKOUT OVL XTO XTI DEM AOUT6 AOUT5 AOUT4 AOUT3 AOUT2 AOUT1 AGND2 VA+ AGND1 NC
Power Supply VA+ - Analog Power Input
+5 V analog supply.
AGND1, AGND2 - Analog Ground
Analog grounds.
VD+ - Digital Power Input
+ 5 V digital supply.
DGND1, DGND2 - Digital Ground
Digital grounds.
DS281PP2
29
CS4227
Analog Inputs AIN1L, AIN1R - Left and Right Channel Mux Input 1
Analog signal input connections for the right and left channels for multiplexer input 1.
AIN2L, AIN2R - Left & Right Channel Mux Input 2
Analog signal input connections for the right and left channels for multiplexer input 2.
AIN3L, AIN3R - Left & Right Channel Mux Input 3
Analog signal input connections for the right and left channels for multiplexer input 3.
AINAUX - Auxiliary Line Level Input
Analog signal input for the mono A/D converter.
Analog Outputs AOUT1, AOUT2, AOUT3, AOUT4, AOUT5, AOUT6 - Audio Outputs
The analog outputs from the 6 D/A converters. Each output can be independently controlled for output amplitude.
CMOUT - Common Mode Output
This common mode voltage output may be used for level shifting when DC coupling is desired. The load on CMOUT must be DC only, with an impedance of not less than 50 k. CMOUT should be bypassed with a 1.0 F to AGND.
Digital Audio Interface Signals SDIN1 - Serial Data Input 1
Digital audio data for the DACs 1 and 2 is presented to the CS4227 on this pin. This pin is also used for one-line data input modes.
SDIN2 - Serial Data Input 2
Digital audio data for the DACs 3 and 4 is presented to the CS4227 on this pin.
SDIN3 - Serial Data Input 3
Digital audio data for the DACs 5 and 6 is presented to the CS4227 on this pin.
SDOUT1- Serial Data Output 1
Digital audio data from the 20-bit stereo audio ADCs is output from this pin. When IS = 1 or 2, DATAAUX is output on SDOUT1. This pin is also used for one line data output modes.
SDOUT2 - Serial Data Output 2
Digital audio data from the mono audio ADC is output from this pin. When IS = 2, the stereo audio ADC's are output from this pin
SCLK - DSP Serial Port Clock I/O
SCLK clocks digital audio data into the DACs via SDIN1/2/3, and clocks data out of the ADCs on SDOUT1/2. Active clock edge depends on the DSCK bit.
30
DS281PP2
CS4227
LRCK - Left/Right Select Signal I/O
The Left/Right select signal. This signal has a frequency equal to the sample rate. The relationship of LRCK to the left and right channel data depends on the selected format.
DEM - De-emphasis Control
When low, DEM controls the activation of the standard 50/15 us de-emphasis filter for either 32, 44.1 or 48 kHz sample rates. This pin is enabled by the DEM2-0 bits in the Auxiliary Port Control Byte.
OVL - Overload Indicator
This pin goes high if either of the stereo audio ADCs or the mono ADC is clipping.
Auxillary Digital Audio Signals DATAUX - Auxiliary Data Input
DATAUX is the auxiliary audio data input line, usually connected to an external digital audio source.
LRCKAUX - Auxiliary Word Clock Input or Output
In auxiliary slave mode, LRCKAUX is a word clock (at Fs) from an external digital audio source. In auxiliary master mode, LRCKAUX is a word clock output (at Fs) to clock an external digital audio source.
SCLKAUX - Auxiliary Bit Clock Input or Output
In auxiliary slave mode, SCLKAUX is the serial data bit clock from an external digital audio source, used to clock in data on DATAAUX. In auxiliary master mode, SCLKAUX is a serial data bit clock output.
HOLD - HOLD Control
This pin is sampled on the active edge of SCLKAUX. If it is high any time during the frame, DATAUX data is ignored and the previous "good" sample is output to the serial output port.
Control Port Signals SPI/I2C - Control Port Format
Setting this pin low configures the control port for the SPI interface; a high state configures the control port for the I2C interface. The state of this pin sets the function of the control port input/output pins .
SCL/CCLK - Serial Control Interface Clock
SCL/CCLK is the serial control interface clock, and is used to clock control bits into and out of the CS4227.
AD0/CS - Address Bit / Control Port Chip Select
In I2C(R) mode, AD0 is a chip address bit. In SPI software control mode, CS is used to enable the control port interface on the CS4227.
AD1/CDIN - Address Bit / Serial Control Data In
In I2C(R) mode, AD1 is a chip address bit. In SPI software control mode, CDIN is the input data line for the control port interface.
SDA/CDOUT - Serial Control Data Out
In I2C(R) mode, SDA is the control data I/O line. In SPI software control mode, CDOUT is the output data from the control port interface on the CS4227. DS281PP2 31
CS4227
Clock and Crystal Pins XTI, XTO - Crystal connections
Input and output connections for the crystal which may be used to operate the CS4227. Alternatively, a clock may be input into XTI.
CLKOUT - Master Clock Output
CLKOUT allows external circuits to be synchronized to the CS4227. Alternate output frequencies are selectable by the control port.
Miscellaneous Pins PDN - Powerdown Pin
When low, the CS4227 enters a low power mode and all internal states are reset, including the control port. When high, the control port becomes operational and the RS bit must be cleared before normal operation will occur.
NC - No Connect
32
DS281PP2
CS4227
4. PARAMETER DEFINITIONS
The ratio of the full scale rms value of the signal to the rms sum of all other spectral components over the specified bandwidth. Dynamic range is a signal-to-noise measurement over the specified bandwidth made with a -60 dbFs signal. 60 dB is then added to the resulting measurement to refer the measurement to full scale. This technique ensures that the distortion components are below the noise level and do not effect the measurement. This measurement technique has been accepted by the Audio Engineering Society, AES17-1991, and the Electronic Industries Association of Japan, EIAJ CP-307.
Dynamic Range
Total Harmonic Distortion + Noise
The ratio of the rms value of the signal to the rms sum of all other spectral components over the specified bandwidth (typically 20 Hz to 20 kHz), including distortion components. Expressed in decibels. ADCs are measured at -1 dBFs as suggested in AES 17-1991 Annex A.
Idle Channel Noise / Signal-to-Noise-Ratio
The ratio of the rms analog output level with 1kHz full scale digital input to the rms analog output level with all zeros into the digital input. Measured A-weighted over a 10 Hz to 20 kHz bandwidth. Units in decibels. This specification has been standardized by the Audio Engineering Society, AES17-1991, and referred to as Idle Channel Noise. This specification has also been standardized by the Electronic Industries Association of Japan, EIAJ CP-307, and referred to as Signal-to-Noise-Ratio.
Total Harmonic Distortion (THD)
THD is the ratio of the test signal amplitude to the rms sum of all the in-band harmonics of the test signal. Units in decibels.
Interchannel Isolation
A measure of crosstalk between channels. Measured for each channel at the converter's output with no signal to the input under test and a full-scale signal applied to the other channel. Units in decibels.
Frequency Response
A measure of the amplitude response variation from 20 Hz to 20 kHz relative to the amplitude response at 1 kHz. Units in decibels.
Interchannel Gain Mismatch
For the ADCs, the difference in input voltage that generates the full scale code for each channel. For the DACs, the difference in output voltages for each channel with a full scale digital input. Units are in decibels.
Gain Error
The deviation from the nominal full scale output for a full scale input.
Gain Drift
The change in gain value with temperature. Units in ppm/C.
Offset Error
For the ADCs, the deviation in LSB's of the output from mid-scale with the selected input grounded. For the DAC's, the deviation of the output from zero (relative to CMOUT) with mid-scale input code. Units are in volts.
DS281PP2
33
CS4227
5. PACKAGE DIMENSIONS
44L TQFP PACKAGE DRAWING
E E1
D D1
1
e
B A A1
L
INCHES DIM A A1 B D D1 E E1 e L MIN 0.000 0.002 0.012 0.478 0.404 0.478 0.404 0.029 0.018 0.000 TYP Coplanarity .001 MAX 0.065 0.006 0.018 0.502 0.412 0.502 0.412 0.037 0.030 7.000 MAX .004 MILLIMETERS MIN MAX 0.00 1.60 0.05 0.15 0.30 0.45 11.70 12.30 9.90 10.10 11.70 12.30 9.90 10.10 0.70 0.90 0.45 0.75 0.00 7.00 TYP .025 MAX .10
JEDEC # : MS-026
34
DS281PP2
* Notes *


▲Up To Search▲   

 
Price & Availability of CS4227

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X